package fr.norsys.mapper.console.model;

import fr.norsys.mapper.console.utils.UIDGenerator;

public class Connection extends BaseObject {
	private static final long serialVersionUID = 421844553622254432L;
	private String id;
	private String name;
	private String user;
	private String pass;
	private String url;
	private String minPoolSize = ConsoleCst.MIN_POOL_SIZE_DEFAULT_VALUE;
	private String maxPoolSize = ConsoleCst.MAX_POOL_SIZE_DEFAULT_VALUE;
	private String timeoutPool = ConsoleCst.TIMEOUT_POOL_DEFAULT_VALUE;
	public Connection() {
		super();
	}
	public Connection(String name) {
		super();
		this.id = UIDGenerator.generateId();
		this.name = name;
	}
	public String getMaxPoolSize() {
		return maxPoolSize;
	}
	public void setMaxPoolSize(String maxPoolSize) {
		this.maxPoolSize = maxPoolSize;
	}
	public String getMinPoolSize() {
		return minPoolSize;
	}
	public void setMinPoolSize(String minPoolSize) {
		this.minPoolSize = minPoolSize;
	}
	public String getPass() {
		return pass;
	}
	public void setPass(String pass) {
		this.pass = pass;
	}
	public String getTimeoutPool() {
		return timeoutPool;
	}
	public void setTimeoutPool(String timeoutPool) {
		this.timeoutPool = timeoutPool;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
}